<template>
	<view class="content">
		<test :title="title" @geifu="getson"></test>
		<view class="">{{name}}</view>
		<test-a></test-a>
		<test-b></test-b>
		<view>
		    <uni-calendar 
		    :insert="true"
		    :lunar="true" 
		    :start-date="'2019-3-2'"
		    :end-date="'2019-5-20'"
		    @change="change"
		     ></uni-calendar>
		</view>
	</view>
</template>

<script>
	import test from "../../components/test1.vue"
	import testa from "../../components/a1.vue"
	import testb from "../../components/b2.vue"
	import calendar from '../../components/uni-calendar/uni-calendar.vue'
	
	export default {
		data() {
			return {
				title: 'Hello',
				name:""
			}
		},
		onLoad() {
            console.log("页面加载了")
		},
		onShow() {
		    console.log("页面显示了")
		},
		onReady() {
		    console.log("初次渲染完成")
		},
		methods: {
           getson:function(num){
			   console.log(num)
			   this.name=num
		   },
		   change:function(e){
			   console.log(e)
		   }
		},
		components:{
			test,
			'test-a':testa,
			'test-b':testb,
			'uni-calendar':calendar
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
